<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0,maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        tr {
            height: 40px;
        }
        button {
            width: 30px;
            height: 100px;
            border: none;
        }
    </style>
</head>
<body>
<button style="width: 100px;height: 30px;background-color: #182600"><a href="" style="text-decoration: none;color: white">添加信息</a>
</button>
<table border="1px" cellspacing="0px" cellpadding="0px" width="1000px" style="height: auto;text-align: center">
    <tr>
        <td>id</td>
        <td>姓名：</td>
        <td>性别：</td>
        <td WIDTH="200PX">饮料：</td>
        <td>创建时间</td>
        <td>更新时间</td>
        <td width="200px">操作：</td>
    </tr>
    @foreach($list as $a)
        <tr style="height: 40px">
            <td class="br">{{$a->id}}</td>
            <td class="br">{{$a->name}}</td>
            <td class="br">{{$a->sex}}</td>
            <td class="br">{{$a->hobby}}</td>
            <td class="br">{{$a->created_at}}</td>
            <td class="br">{{$a->updated_at}}</td>
            <td><a href="update?id={{$a->id}}" style="">
                    <button style="background-color:#027202;color: white;
                margin: auto 5px;height: 30px;width: 50px;font-size: 18px;border-radius: 5px;border: none;outline: none ">
                        编辑
                    </button>
                </a>
                <a href="del?id={{$a->id}}" style="">
                    <button style="background-color:#e7220f;color: white;
                    margin: auto 5px;height: 30px;width: 50px;font-size: 18px;border-radius: 5px;border: none;outline: none ">
                        删除
                    </button>
                </a></td>
        </tr>
    @endforeach
</table>
</body>
</html>
